<%@ page language="java" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>生产监控测试页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="js/jquery1.2.6.pack.js"></script>
	<script type="text/javascript" src="js/swfobject.js"></script>
	<script type="text/javascript">
		$(function(){
			addSwf();
		});
		
		function addSwf(){
			var swfVersionStr = "10.0.0";
			var xiSwfUrlStr = "playerProductInstall.swf";
			var flashvars = {};
			//flashvars.userId = '';//用户ID
			flashvars.urlPrefix = 'flex/';//资源加载地址前缀
			flashvars.contextPath = '/product-monitor';//RO工程contextPath
			flashvars.plId = 1;//生产线ID（转向架6，轮轴北线1）
			var params = {};
			params.quality = "high";
			params.bgcolor = "#ffffff";
			params.allowscriptaccess = "sameDomain";
			params.allowfullscreen = "true";
			var attributes = {};
			attributes.id = "ProduceMonitorSwf";
			attributes.name = "ProduceMonitorSwf";
			attributes.align = "middle";
			swfobject.embedSWF(
			    "flex/ProduceMonitor.swf", "swfContent", 
			    "100%", "100%", 
			    swfVersionStr, xiSwfUrlStr, 
			    flashvars, params, attributes);
			
			/*attributes.id = "AutoDataSwf";
			attributes.name = "AutoDataSwf";
			swfobject.embedSWF(
			    "flex/autodata.swf", "autodata", 
			    "0", "0", 
			    swfVersionStr, xiSwfUrlStr, 
			    flashvars, params, attributes);*/
		}
	</script>
	
	<style>
		body, #wrap{
			padding: 0 0;
			margin: 0 0;
		}
	</style>
  </head>
  
  <body>
    <div id="wrap" style="width: 100%; height: 100%; text-align: center;">
    	<div id="swfContent"></div>
    </div>
    
    <div id="wrap" style="width: 0; height: 0;">
    	<div id="autodata"></div>
    </div>
  </body>
</html>
